package com.tairan.chapter.nacos.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "tairan-spring-cloud-nacos-provider", path = "/provider")
public interface ProviderApi {

    @GetMapping("/echo/{string}")
    String echo(@PathVariable("string") String string);

}
